package cz.data.domain.masterdata.model.dto;

import com.alibaba.fastjson.JSONObject;
import cz.data.common.validate.ValidationGroups;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class ModelData implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty("模型ID")
    @NotBlank(message = "模型表不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
    private String mid;
    @ApiModelProperty("数据ID")
    private String id;
    @ApiModelProperty("物理表")
    private String tableName;
    @ApiModelProperty(name = "数据内容")
    private JSONObject row;
}
